//通过函数返回最新的Variable变量表 更新样式
import Color from '../../config/theme/standard/color';
import { Dimensions } from 'react-native'
const generateSudoku = (Variables)=>{
    return {
        //标题文字
        titleFontSize:Variables.fontSizeXs,
        //标题文字颜色
        titleColor:Variables.colorBlack
    }
}

const getSudokuStyle =(Variables)=>{
    let SudokuStyle = generateSudoku(Variables)
    let styles = {
        container: {
            overflow: 'visible',        //hidden 会存在最右侧/最左侧徽标遮挡问题  auto在安卓版本59上不支持
            flexDirection: 'row',
            alignItems: 'center',
            flexWrap: 'wrap',
            borderColor: Color.border,
        },
        cell: {
            // overflow: 'hidden',
            justifyContent: 'center',
            alignItems: 'center',
            borderColor: Color.border,
            borderRightWidth: 0,
            zIndex: -10,
        },
        image: {
            width: 26,
            height: 26,
            marginHorizontal: 10,
            resizeMode: 'contain'
        },
        title: {
            //height: 14,  
        },
        description: {
            width: Dimensions.get('window').width / 3 - 30,
            height: 15,
        },
     
        
    }
    return {
        SudokuStyle,styles
    }
}

export { getSudokuStyle }